cc.Class({
    extends: cc.Component,
    properties: {
        id: 0,
        itemName: cc.Label,
        itemNume: cc.Label,
        itemComplex: cc.Label,
        itemPin: cc.Label,
    },
    init: function (data) {
        console.log(data)
        this.id = data.id;
        this.itemName.string = data.itemName;
        this.itemNume.string = data.itemNume;
        this.itemComplex.string = data.itemComplex;
        this.itemPin.string = data.itemPin;
    },
    getId: function(){
        return this.id;
    }
});